<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>添加客户</title>
<script type="text/javascript">
/**查找带回机构信息*/
function lookUpNetsite() {
	$.pdialog.open('netsiteLookUp', 'organization', '网点信息', {
		width : 1000,
		height : 580,
		mask : true
	});
}

//图片上传的初始化
	$('#uploadify').uploadify({
		'uploader' : 'uploadify/scripts/uploadify.swf',
		'script' : 'picUploadify', //指定服务端处理类的入口
		'folder' : 'upload/image',
		'cancelImg' : 'uploadify/cancel.png',
		'fileDataName' : 'uploadify', //和input的name属性值保持一致就好，Struts2就能处理了   
		'queueID' : 'fileQueue',
		'auto' : true,//是否选取文件后自动上传   
		'multi' : false,//是否支持多文件上传
		'simUploadLimit' : 1,//每次最大上传文件数   
		'fileDesc' : '.jpg文件或.gif文件或.png文件',//上传文件类型说明
		'fileExt' : '*.jpg;*.gif;*.png',
		'wmode' : 'transparent', //隐藏进度条
		'displayData' : 'percentage',//有speed和percentage两种，一个显示速度，一个显示完成百分比    
		'onComplete' : function(event, queueID, fileObj, response, data) {
			$("#picPath").val(response);
			$("#imgpath").html("<img src='"+response+"' />");
		}
	});


</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate" method="post" action="addCourierAction.action" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" />
			<div class="pageFormContent" layoutH="56">
				<table>
					<!--查找带回 -->
					<tr>
						<td>所属网点：</td>
						<td><input type="text" class="required" name="netSiteName" readonly="readonly" bringBackName="netSite.netSiteName" size="30" class="required textInput valid" />
						 <input type="hidden" name="netSiteId" bringBackName="netSite.netSiteId" /> 
						 <input type="hidden" name="expressCompanyName" bringBackName="netSite.expressCompanyName" /> 
						 <a class="btnLook"	href="netsiteLookUp" lookupGroup="netSite"  width="1000" height="580" warn="请选择快递员" >查找带回</a>
						<!--  <a class="btnLook" href="javascript:void(0);" onclick="lookUpNetsite()">查找带回</a></td> -->
					</tr>
					<tr>
						<td>用户名</td>
						<td><input name="username" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>密码：</td>
						<td><input name="password" type="password" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>电话：</td>
						<td><input name="mobile" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					 <tr>
						<td>真实姓名：</td>
						<td><input name="realname" type="text" size="30" class="required textInput valid" /></td>
					</tr>
					<tr>
						<td>快递员头像：</td>
						<td><input type="file" name="uploadify" id="uploadify" /> <input id="picPath" type="hidden" name="courierPicture" /></td>
					</tr>
					<tr>
						<td colspan="2">
							<div id="imgpath"></div>
						</td>
					</tr>
					<tr>
						<td>性别：</td>
						<td><select   name="gender" style="width: 120px">
								<option value="1">男</option>
								<option value="0">女</option>
						</select></td>
					</tr>
					<tr>
						<td>状态：</td>
						<td><select   name="locked" style="width: 120px">
								<option value="1">禁用</option>
								<option value="0">启用</option>
						</select></td>
					</tr>
					
					<tr>
						<td>类型：</td>
						<td><select   name="workType" style="width: 120px">
								<option value="1">直送员</option>
								<option value="2">仓管员</option>
								<option value="0">收件员</option>
						</select></td>
					</tr>
				</table>
				<table>
					<tr>
						<td>工作开始时间：</td>
						<td><input name="workStartTimeHour" type="text" min="1" max="24" size="5" class="required textInput valid" />点</td>
						<td><input name="workStartTimeMin" type="text" min="0" max="60" size="5" class="required textInput valid" />分</td>
					</tr>
					<tr>
						<td>工作结束时间：</td>
						<td><input name="workEndTimeHour" type="text" min="1" max="24" size="5" class="required textInput valid" />点</td>
						<td><input name="workEndTimeMin" type="text" min="0" max="60" size="5" class="required textInput valid" />分</td>
					</tr>
				</table>
			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">保存</button>
							</div>
						</div>
					</li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>